
<div class="col-sm-12 mt20">
     <div class="panel">
           <div class="panel-body">
                <div class="col-sm-12">
			              <div class="row">			        
							          <div class="col-sm-2">
                          <input type="text" class="form-control" ng-model="searchform.startcard" placeholder="起始卡号">
							          </div>
                        <div class="col-sm-2">
                           <input type="text" class="form-control" ng-model="searchform.endcard" placeholder="结束卡号">
                        </div>
                        <div class="col-sm-2">
                           <input type="text" class="form-control" ng-model="searchform.cardbatch" placeholder="批次号">
                        </div>
                        <div class="col-sm-2">
                           <input type="text" class="form-control" ng-model="searchform.company_code" placeholder="机构编号">
                        </div>
                        <div class="col-sm-2">
                          <input type="text" class="form-control" ng-model="searchform.update_by" placeholder="登录账号">
                        </div>
			              </div>
                     <div class="row mt10">
                     	<div class="col-sm-2">
                        </div>
                        <div class="col-sm-2">
                        </div>
                        <div class="col-sm-2">
                        </div>
                        <div class="col-sm-2">
                        </div>
                        <div class="col-sm-2">
                          <input type="button " class="btn btn-success search form-control" ng-click="add()" value="添加卡段">
                        </div>
                        <div class="col-sm-2">
                          	<input type="button " class="btn btn-info search form-control" ng-click="search(searchform.startcard, searchform.endcard, searchform.cardmakestatus, searchform.cardbatch, searchform.cardgivetatus)" value="立即搜索">
                        </div>
			              </div>
                </div>
           </div>
     </div>  

 <div class="col-sm-12" style="background: #fff; padding-top: 15px;">
    <tabset class="tab-container">

      <tab index="0" heading="未制作" ng-click="search(0)">
	      <table class="table table-condensed table-hover table-bordered">
		    <thead>
		      <tr>
		        <th class="col-md-4 text-center">卡段</th>
		        <th class="col-md-2 text-center">批次</th>
		        <th class="col-md-2 text-center">操作时间</th>
		        <th class="col-md-2 text-center">操作账号</th>
		        <th class="col-md-2 text-center">操作</th>
		      </tr>
		    </thead>
		    <tbody>
		      <tr ng-repeat="obj in objs">
		        <td class="text-center">{{obj.mincard}} - {{obj.maxcard}}</td>
		        <td class="text-center">{{obj.card_make_batch}}</td>
		        <td class="text-center">{{obj.update_time}}</td>
		        <td class="text-center">{{obj.update_by}}</td>
		        <td class="text-center">
		          <a ng-click="batchnumber(obj.mincard,obj.maxcard)" class="btn btn-info btn-xs">设置批次号</a>  
		        </td>
		      </tr>
		    </tbody>
		   </table>
      </tab>

      <tab index="1" heading="制作中" ng-click="search(1)">
      	<table class="table table-condensed table-hover table-bordered">
		    <thead>
		      <tr>
		        <th class="col-md-4 text-center">卡段</th>
		        <th class="col-md-2 text-center">批次</th>
		        <th class="col-md-2 text-center">操作时间</th>
		        <th class="col-md-2 text-center">操作账号</th>
		        <th class="col-md-2 text-center">操作</th>
		      </tr>
		    </thead>
		    <tbody>
		      <tr ng-repeat="obj in objs">
		        <td class="text-center">{{obj.mincard}} - {{obj.maxcard}}</td>
		        <td class="text-center">{{obj.card_make_batch}}</td>
		        <td class="text-center">{{obj.update_time}}</td>
		        <td class="text-center">{{obj.update_by}}</td>
		        <td class="text-center">
		          <a ng-click="cardcomplete(obj.card_make_batch,obj.mincard,obj.maxcard)" class="btn btn-success btn-xs">制卡完成</a>
		          <a ng-click="exExcel(obj)" class="btn btn-warning btn-xs">导出excel</a>    
		        </td>
		      </tr>
		    </tbody>
		   </table>
      </tab>

      <tab index="2" heading="未发放" ng-click="search(2)">
      	<table class="table table-condensed table-hover table-bordered">
		    <thead>
		      <tr>
		        <th class="col-md-4 text-center">卡段</th>
		        <th class="col-md-2 text-center">批次</th>
		        <th class="col-md-2 text-center">操作时间</th>
		        <th class="col-md-2 text-center">操作账号</th>
		        <th class="col-md-2 text-center">操作</th>
		      </tr>
		    </thead>
		    <tbody>
		      <tr ng-repeat="obj in objs">
		        <td class="text-center">{{obj.mincard}} - {{obj.maxcard}}</td>
		        <td class="text-center">{{obj.card_make_batch}}</td>
		        <td class="text-center">{{obj.update_time}}</td>
		        <td class="text-center">{{obj.update_by}}</td>
		        <td class="text-center">

		        </td>
		      </tr>
		    </tbody>
		   </table>
      </tab>

      <tab index="3" heading="已发放" ng-click="search(3)">
      	<table class="table table-condensed table-hover table-bordered">
		    <thead>
		      <tr>
		        <th class="col-md-4 text-center">卡段</th>
		        <th class="col-md-2 text-center">批次</th>
		        <th class="col-md-2 text-center">操作时间</th>
		        <th class="col-md-2 text-center">操作账号</th>
		        <th class="col-md-2 text-center">操作</th>
		      </tr>
		    </thead>
		    <tbody>
		      <tr ng-repeat="obj in objs">
		        <td class="text-center">{{obj.mincard}} - {{obj.maxcard}}</td>
		        <td class="text-center">{{obj.card_make_batch}}</td>
		        <td class="text-center">{{obj.update_time}}</td>
		        <td class="text-center">{{obj.update_by}}</td>
		        <td class="text-center">

		        </td>
		      </tr>
		    </tbody>
		   </table>
      </tab>

    </tabset>

</div>
        
<!--<div class="panel panel-default table-responsive">
    <div class="panel-body">
    <table class="table table-condensed table-hover table-bordered">
    <thead>
      <tr>
        <th class="col-md-4 text-center">卡段</th>
        <th class="col-md-2 text-center">批次</th>
        <th class="col-md-2 text-center">操作时间</th>
        <th class="col-md-2 text-center">操作账号</th>
        <th class="col-md-2 text-center">操作</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="obj in objs">
        <td class="text-center">{{obj.mincard}} - {{obj.maxcard}}</td>
        <td class="text-center">{{obj.card_make_batch}}</td>
        <td class="text-center">{{obj.update_time}}</td>
        <td class="text-center">{{obj.update_by}}</td>
        <td class="text-center">
          <a ng-show="obj.card_giveout_status=='未发放' && obj.card_make_status=='未制作'" ng-click="batchnumber(obj.mincard,obj.maxcard)" class="btn btn-info btn-xs">设置批次号</a>

          <a ng-show="obj.card_giveout_status=='未发放' && obj.card_make_status=='制作中'"
          ng-click="cardcomplete(obj.card_make_batch,obj.mincard,obj.maxcard)" class="btn btn-success btn-xs">制卡完成</a>
          <a ng-show="obj.card_giveout_status=='未发放' && obj.card_make_status=='制作中'"
          ng-click="exExcel(obj)" class="btn btn-warning btn-xs">导出excel</a>    
        </td>
      </tr>
    </tbody>
    </table>

</div>-->